<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        /* 
            作用域链：
        */
       function func1(){
        var num = 150;
        function fun2(){
            var num = 213;
            console.log(num);
        }

        fun2();
       }

       var num = 100;
       func1();
    </script>
</head>
<body>
    
</body>
</html>